<?php require "header.php"; ?><!--Beginning head Seciton -->
<!--End head section and start nav + header -->
<?php require "nav.php"; ?>

<?php

// populates plant list
// this should probably becoming from a database instead...
// and then used to display list
$plantpages = array();
$subdir = 'species_pages/';

$plant = 'harding_grass';
$plantpages[0]['plant'] = $plant;
$plantpages[0]['page'] = $subdir.$plant.'.html';
$plantpages[0]['common'] = 'Harding Grass';
$plantpages[0]['scientific'] = 'Phalaris aquatica';

$plant = 'perennial_pepperweed';
$plantpages[1]['plant'] = $plant;
$plantpages[1]['page'] = $subdir.$plant.'.html';

$plant = 'poison_hemlock';
$plantpages[2]['plant'] = $plant;
$plantpages[2]['page'] = $subdir.$plant.'.html';

$plant = 'spanish_broom';
$plantpages[3]['plant'] = $plant;
$plantpages[3]['page'] = $subdir.$plant.'.html';

$plant = 'terracina_spurge';
$plantpages[4]['plant'] = $plant;
$plantpages[4]['page'] = $subdir.$plant.'.html';

$plant = 'yellow_starthistle';
$plantpages[5]['plant'] = $plant;
$plantpages[5]['page'] = $subdir.$plant.'.html';

// get selected plant page
$curpage = '';

if(isset($_GET['plant'])){
	foreach ($plantpages as $page) {
		if ($page['plant'] == $_GET['plant']) {
			$curpage = $page['page'];
			break;
		}
	}
}
else {
	$curpage = $plantpages[0]['page'];

}
?>
	<div class="span-24 last">&nbsp;</div>
<!-- Begin Left List -->

	<div class="span-4">
		<h3>Top Six Invasives</h3>

		<div class="box bcolor1 leftmenu nav">
			<a href="plants.php?plant=harding_grass"><strong>Harding grass</strong><br><i>Phalaris aquatica</i></a>
		</div>

		<div class="box bcolor2 leftmenu nav">
			<a href="plants.php?plant=perennial_pepperweed"><strong>Perennial pepperweed</strong><br><i>Lepidium latifolium</i></a>
		</div>

		<div class="box bcolor3 leftmenu nav">
			<a href="plants.php?plant=poison_hemlock"><strong>Poison hemlock</strong><br><i>Conium maculatum</i></a>
		</div>

		<div class="box bcolor5 leftmenu nav">
			<a href="plants.php?plant=spanish_broom"><strong>Spanish Broom</strong><br><i>Spartium junceum</i></a>
		</div>

		<div class="box bcolor1 leftmenu nav">
			<a href="plants.php?plant=terracina_spurge"><strong>Terracina spurge</strong><br><i>Euphorbia terracina</i></a>
		</div>

		<div class="box bcolor2 leftmenu nav">
			<a href="plants.php?plant=yellow_starthistle"><strong>Yellow Starthistle</strong><br><i>Centaurea solstitialis</i></a>
		</div>

		<div class="box bcolor3 leftmenu center navblack">
			<strong> <a href="<?=$FILES_DIR?>SOMA_weed_field_guide.pdf" target="_guide">The Santa Monica NP weed field guide!</a></strong>
		</div>

		<div class="leftmenu center" id="flickr_badge">
<!-- Start of Flickr Badge -->
			<script src="http://www.flickr.com/badge_code_v2.gne?count=1&display=random&size=t&layout=v&source=user_tag&user=37983522%40N02&tag=valid"></script>
<!-- End of Flickr Badge -->

		</div>
		<div class="center"><strong>User-photos!</strong></div> 
	</div>

<!-- Begin right display -->

	<div id="content" class="span-19 last">
<?php 
	include ($curpage);
?>
	</div>
<?php require "footer.php"; ?>
